home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8207 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.clark.net!usenet
  2. From: yom@clark.net (yom)
  3. Newsgroups: vmsnet.misc,comp.lang.c
  4. Subject: Re: How to run a C program taking command line arguments on VMS
  5. Date: 29 Feb 1996 02:50:40 GMT
  6. Organization: Clark Internet Services, Inc.
  7. Message-ID: <4h34a0$6g0@clarknet.clark.net>
  8. References: <4h1u5d$s5c@news.fsu.edu>
  9. NNTP-Posting-Host: yom.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. It's been a long time since I've been on a VMS machine, but I think
  15. you have to assign a global symbol for your executable:
  16.  
  17. $ foo :== $usr:[bar]foo.exe
  18.  
  19.  
  20. Song (yom@clark.net)
  21.  
  22. In article <4h1u5d$s5c@news.fsu.edu>, meil@firnvx.firn.edu says...
  23. >
  24. >Could someone tell me how to run a C program which takes command line 
  25. >arguments on VAX/VMS? I have checked the FAQ about openVMS and tried 
  26. the 
  27. >instructions. But I couldn't get it work. I don't have an openVMS 
  28. mannual.  
  29. >Please help me!
  30. >
  31. >My program is like:
  32. >
  33. >/* myprog.c */
  34. >  
  35. >  main(argn, **argv)
  36. >  {
  37. >  
  38. >     ...
  39. >
  40. >  }
  41. >
  42. >If run on Unix or DOS, I could type something like
  43. >
  44. >  myprog -lu abcd
  45. >
  46. >How to run it on VMS?
  47. >
  48. >I'd appreciate your help!
  49. >
  50.  
  51.